package LanQiao.jichu;

import java.util.Scanner;

//十进制转十六进制
public class BASIC_10 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        String s = Integer.toHexString(n);
        System.out.println(s.toUpperCase());
    }
}
